package com.itheima.pinda.config;

import com.itheima.pinda.common.handler.DefaultGlobalExceptionHandler;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: duk
 * @Date: 2022/4/12 19:28
 * @Description: 异常信息拦截
 */
@Configuration
@ControllerAdvice(annotations = {RestController.class})
@ResponseBody
public class ExceptionConfiguration extends DefaultGlobalExceptionHandler {

}
